package com.usian.controller;

import com.usian.pojo.OrderInfo;
import com.usian.service.OrderService;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * 订单服务 Controller
 */
@RestController
@RequestMapping("/service/order")
public class OrderServiceController {
    @Resource
    private OrderService orderService;
    //创建订单
    @RequestMapping("/insertOrder")
    Long insertOrder(@RequestBody OrderInfo orderInfo){
        return orderService.insertOrder(orderInfo);
    }
}
